// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '数据采集地址',
        name: 'equipmenttagaddress',
        newTabEdit: false,
        url: "/equipmenttagaddress/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"TagConnId":"","Name":"","PlcAddress":"","EquipmentCode":"","Property":"","DataType":"","Tag":"","Status":"","ReadWrite":""};
    const editFormOptions = [[{"dataKey":"设备驱动","data":[],"title":"驱动Id","required":true,"field":"TagConnId","type":"select"},
                               {"title":"标签名称","required":true,"field":"Name"},
                               {"title":"plc地址","required":true,"field":"PlcAddress"}],
                              [{"title":"设备编码","required":true,"field":"EquipmentCode","type":"selectTable"},
                               {"dataKey":"IOT分组","data":[],"title":"分组","required":true,"field":"Property","type":"select"},
                               {"dataKey":"PLC类型","data":[],"title":"数据类型","required":true,"field":"DataType","type":"select"}],
                              [{"title":"标识","required":true,"field":"Tag","type":"number"},
                               {"dataKey":"PLC地址状态","data":[],"title":"标签状态","required":true,"field":"Status","type":"select"},
                               {"dataKey":"PLC地址读写状态","data":[],"title":"读写属性","required":true,"field":"ReadWrite","type":"select"}]];
    const searchFormFields = {"TagConnId":"","Name":"","PlcAddress":"","EquipmentCode":"","Property":"","DataType":"","Status":"","ReadWrite":""};
    const searchFormOptions = [[{"dataKey":"设备驱动","data":[],"title":"驱动Id","field":"TagConnId","type":"select"},{"title":"标签名称","field":"Name"}],[{"title":"plc地址","field":"PlcAddress"},{"title":"设备编码","field":"EquipmentCode"},{"dataKey":"IOT分组","data":[],"title":"分组","field":"Property","type":"select"}],[{"dataKey":"PLC类型","data":[],"title":"数据类型","field":"DataType","type":"select"},{"dataKey":"PLC地址状态","data":[],"title":"标签状态","field":"Status","type":"select"},{"dataKey":"PLC地址读写状态","data":[],"title":"读写属性","field":"ReadWrite","type":"select"}]];
    const columns = [{field:'Id',title:'Id',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'TagConnId',title:'驱动Id',type:'string',bind:{ key:'设备驱动',data:[]},width:120,require:true,align:'left'},
                       {field:'Name',title:'标签名称',type:'string',link:true,width:120,require:true,align:'left'},
                       {field:'PlcAddress',title:'plc地址',type:'string',width:120,require:true,align:'left'},
                       {field:'EquipmentCode',title:'设备编码',type:'string',width:120,require:true,align:'left'},
                       {field:'Property',title:'分组',type:'string',bind:{ key:'IOT分组',data:[]},width:120,require:true,align:'left'},
                       {field:'DataType',title:'数据类型',type:'int',bind:{ key:'PLC类型',data:[]},width:120,require:true,align:'left'},
                       {field:'Tag',title:'标识',type:'int',width:120,require:true,align:'left'},
                       {field:'Status',title:'标签状态',type:'int',bind:{ key:'PLC地址状态',data:[]},width:120,require:true,align:'left'},
                       {field:'ReadWrite',title:'读写属性',type:'int',bind:{ key:'PLC地址读写状态',data:[]},width:120,require:true,align:'left'},
                       {field:'UpdateTime',title:'创建时间',type:'datetime',width:120,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}